include ../Makefile.shared

define PROJ_acopt
  SOURCES = ../inference/gibbsImpl.ml optImpl.ml acopt.ml
  RESULT = acopt
endef
export PROJ_acopt

# If the environment does not define subprojects to handle,
# then set a default
ifndef SUBPROJS
  export SUBPROJS = acopt
endif

export CLIBS=lbfgs_stubs
export LIBS=ext str unix expat data lbfgs mn bn circuit

# Default target to use
all: nc
	cp $(SUBPROJS) $(BINDIR)

# Catch-all target will be applied to all subprojects automatically
%:
	@$(MAKE) -f $(OCAMLMAKEFILE) subprojs SUBTARGET=$@
